<!DOCTYPE html>
<html>

<head>
  <title>排课小程序 - 首页</title>
  <link rel="stylesheet" href="/css/style.css">
</head>
<style>
  /* 全局样式 */
  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* 头部导航样式 */
  header {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
  }

  header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
  }

  header nav ul li {
    margin-right: 20px;
  }

  header nav ul li a {
    color: #fff;
    text-decoration: none;
  }

  /* 页脚样式 */
  footer {
    background-color: #f4f4f4;
    color: #666;
    padding: 20px 0;
    text-align: center;
  }

  /* 主体内容样式 */
  main {
    padding: 40px 0;
  }

  .hero {
    background-color: #f8f8f8;
    text-align: center;
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .hero p {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
  }

  .btn-primary {
    background-color: #007bff;
    color: #fff;
  }

  .btn-secondary {
    background-color: #6c757d;
    color: #fff;
  }

  .features {
    padding: 60px 0;
    text-align: center;
  }

  .features h2 {
    font-size: 30px;
    margin-bottom: 40px;
  }

  .features .row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .features .col {
    flex-basis: 22%;
    margin-bottom: 30px;
  }

  .features i {
    font-size: 36px;
    color: #007bff;
    margin-bottom: 20px;
  }

  .features h3 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .cta {
    background-color: #007bff;
    color: #fff;
    text-align: center;
    padding: 60px 0;
  }

  .cta h2 {
    font-size: 30px;
    margin-bottom: 20px;
  }

  .cta p {
    font-size: 18px;
    margin-bottom: 30px;
  }
</style>

<body>
  <%- include('components/header', { activeNav: 'home' }); -%>

  <main>
    <section class="hero">
      <div class="container">
        <h1>欢迎来到排课小程序</h1>
        <p>让教学管理变得更加智能和高效</p>
        <a href="/courses" class="btn btn-primary">立即体验</a>
      </div>
    </section>

    <section class="features">
      <div class="container">
        <h2>我们的优势</h2>
        <div class="row">
          <div class="col">
            <i class="icon-calendar"></i>
            <h3>智能排课</h3>
            <p>基于人工智能算法,自动生成最优课表</p>
          </div>
          <div class="col">
            <i class="icon-users"></i>
            <h3>教师管理</h3>
            <p>方便管理教师信息,分配教学任务</p>
          </div>
          <div class="col">
            <i class="icon-book"></i>
            <h3>课程管理</h3>
            <p>支持多种课程类型,灵活设置课程属性</p>
          </div>
          <div class="col">
            <i class="icon-chart"></i>
            <h3>数据统计</h3>
            <p>提供可视化的数据统计和分析功能</p>
          </div>
        </div>
      </div>
    </section>

    <section class="cta">
      <div class="container">
        <h2>立即开始使用排课小程序</h2>
        <p>注册账号,开启智能排课之旅</p>
        <a href="/register" class="btn btn-secondary">免费注册</a>
      </div>
    </section>
  </main>

  <%- include('components/footer'); -%>

  <script src="/js/main.js"></script>
</body>

</html>